<template>
  <header>
    <div><i class="iconfont icon-fanhui"></i></div>
    <div class="search" @click="goSearch">
      <i class="iconfont icon-sousuoxiao"></i>
      <span>请输入内容...</span>
    </div>
    <div class="kefu">
      <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
export default {
  name: "Header",
  methods: {
    goSearch() {
      this.$router.push("/search/searchindex");
    },
  },
};
</script>

<style scoped>
header {
  display: flex;
  z-index: 999999;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #b0352f;
  width: 100%;
  height: 52px;
}
header h1 {
  width: 50px;
  height: 52px;
}

.search {
  display: flex;
  width: 246px;
  height: 30px;
  line-height: 30px;
  background-color: #f3f3f3;
  border-radius: 15px;
  font-size: 16px;
}
.search i {
  padding-left: 10px;
  padding-right: 10px;
  align-items: center;
  height: 30px;
  line-height: 30px;
}
.search span {
  color: #ccc;
}
.kefu i {
  font-size: 38px !important;
  color: #fff;
}
</style>